/*
 * ExampleParam.cpp
 *
 *  Created on: 2012-9-9
 *      Author: yangentao@gmail.com
 */
#include "Test.h"

int neg(int val){
	return -val;
}


class NegTest: public testing::TestWithParam<int>{
public:
	NegTest(){
		value = GetParam();
	}
protected:
	int value;
};

TEST_P(NegTest, a){
	EXPECT_EQ(neg(value), -value);
}

INSTANTIATE_TEST_CASE_P(MyPrefix, NegTest, testing::Range(1, 10, 2));



